//
//  BKHomeCycleCell.m
//  FastBee
//
//  Created by mac on 16/9/9.
//  Copyright © 2016年 xbk. All rights reserved.
//

#import "BKHomeCycleCell.h"
#import "masonry.h"
#import "UIView+MDRExtension.h"
#import "UIImageView+WebCache.h"
#import "BKHomeCycleView.h"

@interface BKHomeCycleCell()
@property (nonatomic,weak) UIImageView *pictureView;

@end

@implementation BKHomeCycleCell

- (instancetype)initWithFrame:(CGRect)frame{

    if (self = [super initWithFrame:frame]) {
        
        [self setupUI];
    }
    return self;
}

- (void)setModel:(BKHomeCycleModel *)model{

    _model = model;
    [self.pictureView sd_setImageWithURL:[NSURL URLWithString:model.img] placeholderImage:nil];
    
}


- (void)setupUI{

    UIImageView *pictureView = [[UIImageView alloc]initWithFrame:CGRectMake(0, 0, self.contentView.width, self.contentView.height)];
    pictureView.backgroundColor = [UIColor whiteColor];
    [self.contentView addSubview:pictureView];
    pictureView.backgroundColor = [UIColor grayColor];

    _pictureView = pictureView;
}




@end
